﻿@model AMAP.Areas.Supplier.Models.Home.SupplierHomeIndexViewModel
@{
    ViewBag.Title = "Espace personnel";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Espace personnel</h2>

<div class="left resume">
    <p>
        Bonjour @Html.RouteLink(Model.Supplier.User.FirstName + " " + @Model.Supplier.User.LastName, "Supplier_default", new { controller = "Account", action = "Edit" })
    </p>
        <p>
            Votre société : 
            <span style="text-transform : uppercase; font-weight:bold">@Html.RouteLink(Model.Supplier.User.Supplier.CompanyName, "Supplier_default", new { controller = "Account", action = "Edit" })</span>, est enregistrée sous le numéro SIRET : @Model.Supplier.User.Supplier.SIRET.ToSiretNumber()<br />
        </p>

        <p>
            Voici l'adresse dont nous disposons :<br />
        </p>
        <ul style="list-style: none;">
            <li>@Model.Supplier.User.Coordinates.Address1</li>
            @if (!string.IsNullOrEmpty(Model.Supplier.User.Coordinates.Address2))
            {
                <li>@Model.Supplier.User.Coordinates.Address2</li>
            }
            <li>@Model.Supplier.User.Coordinates.PostalCode @Model.Supplier.User.Coordinates.City</li>
        </ul>
        
            @if (!string.IsNullOrEmpty(Model.Supplier.User.Coordinates.PhoneNumber))
            {
        <p>
            Vous êtes joignable au @Model.Supplier.User.Coordinates.PhoneNumber.ToFrenchPhoneNumber()
        </p>
            }
        <p>
            @Html.RouteLink("Modifier mes informations", "Supplier_default", new { controller = "Account", action = "Edit" }, new { @class = "button" })
        </p>


</div>